// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueResource from 'vue-resource'
import Mint from 'mint-ui'
import ElementUI from 'element-ui'
import store from './store'
import 'element-ui/lib/theme-chalk/index.css'
import 'mint-ui/lib/style.css'
import '../static/css/mint-ui.css'
import './iconfont/iconfont.css'
import '../static/css/element-ui.css'
import '../node_modules/swiper/dist/css/swiper.min.css'
// import Swiper from "swiper"
import {
	Tabbar,
	TabItem
} from 'mint-ui';
import {
	Cell
} from 'mint-ui';
import {
	Swipe,
	SwipeItem
} from 'mint-ui';
import {
	Checklist
} from 'mint-ui';
import {
	Radio
} from 'mint-ui';
import {
	Pagination,
} from 'element-ui';
import Vant from 'vant';
import 'vant/lib/index.css';

Vue.use(Mint);
Vue.use(ElementUI);
Vue.use(VueResource);

// Vue.component(Toast.name, Toast);
Vue.config.productionTip = false;
Vue.component(TabItem.name, TabItem);
Vue.component(Cell.name, Cell);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);
Vue.component(Checklist.name, Checklist);
Vue.component(Radio.name, Radio);
Vue.use(Pagination);
Vue.use(Vant);
// Vue.use(Swiper);
/* eslint-disable no-new */
new Vue({
	el: '#app',
	router,
	store,//使用store
	components: {
		App
	},
	template: '<App/>',
})
